package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.BuffetExamine;
import com.ruoyi.common.core.domain.entity.Example;
import com.ruoyi.system.mapper.BuffetExamineMapper;
import com.ruoyi.system.mapper.ExampleMapper;
import com.ruoyi.system.service.ExampleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ExampleServiceImpl implements ExampleService {
    @Autowired
    ExampleMapper exampleMapper;
    @Override
    public List<Example> selectList(Example examinePlan) {
        return exampleMapper.selectList(examinePlan);
    }

    @Override
    public Boolean update(Example examinePlan) {
        return exampleMapper.update(examinePlan)==1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return exampleMapper.deleteById(id)==1;
    }

    @Override
    public Boolean create(Example examinePlan) {
        return exampleMapper.insert(examinePlan)==1;
    }

    @Override
    public Example selectById(Long id) {
        return exampleMapper.selectById(id);
    }

    @Override
    public List<Example> selectTenList() {
        return exampleMapper.selectTenList();
    }
}
